.header {
    background: #fff;
    width: 100%;
    z-index: 999;
    position: fixed;
    height: 50px;
    top: 0;
    line-height: 50px;
    border-bottom: 1px solid #C9C9C9;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.16);
}

.header .search-wrapper, .header .logo {
    width: 45%;
    float: left;
}

.header .logo {
    width: 25%;
    margin-left: 5%;
    padding-top: 8px;
}

.header .logo img {
    vertical-align: inherit;
}

.header .search-wrapper {
    position: relative;
    margin-top: 8px;
}

.header .search-wrapper input[type='text'] {
    outline: none;
    border: 1px solid #cccccc;
    height: 32px;
    padding: 0 10px;
    width: 190px;
    float: right;
    transition: width .3s;
}

.header .search-wrapper input:focus {
    width: 300px;
}

.search-box {
    margin: 11px 50px;
    margin-right: 0;
}

.search-button {
    background: url('../images/icon/search_icon.png') no-repeat center -18px;
    width: 32px;
    height: 30px;
    position: absolute;
    right: 0;
}

.search-button:hover {
    background: url('../images/icon/search_icon.png') no-repeat center 10px;
}

.header-wrapper {
    width: 1000px;
    margin: auto;
    position: relative;
}

.header .account-wrappper .button.login {
    display: inline-block;
    width: auto;
    padding: 0 20px;
    background: transparent;
    margin: 0 3px;
    line-height: 32px;
    color: #888;
    height: 32px;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: none;
}

.header .account-wrappper .button.login:hover {
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 2px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.03);
}

.header .account-wrappper .button.create {
    display: inline-block;
    width: 80px;
    height: 35px;
    line-height: 35px;
    margin-left: 10px;
}

.account-wrappper .account-info {
    display: inline-block;
    width: 120px;
    margin-left: 30px;
    position: relative;
}

.header.sub {
    background: white;
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    margin-left: auto; /*centered*/
    margin-right: auto;
    margin-top: 50px;
    z-index: 0;
    border: 0;
    -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1), 0 1px 0 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1), 0 1px 0 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1), 0 1px 0 0 rgba(0, 0, 0, 0.1);
}

.account-wrappper .account-info > div {
    display: inline-block;
    vertical-align: middle;
    margin-right: 2%;
    text-transform: uppercase;
    font-weight: bolder;
    color: #3EA291;
    transition: color .3s;
}

.account-wrappper .account-info .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
}

.account-wrappper .account-info .username {
    cursor: pointer;
}

.account-wrappper .account-info .username:hover {
    color: #888;
}

.account-wrappper .account-info .username span,
.account-wrappper .account-info .username img {
    vertical-align: middle;
    margin-right: 5px;
}

.account-wrappper .account-info .username img {
    opacity: 0.6;
    transition: opacity .3s;
}

.account-wrappper .account-info .username:hover img {
    opacity: 0.8;
}

.account-wrappper .account-info .avatar img {
    height: 35px;
    width: auto;
    opacity: 0.8;
    display: block;
}

.account-wrappper .account-menu {
    position: absolute;
    right: 0;
    top: 60px;
    width: 250px;
    font-weight: normal !important;
    line-height: 20px;
    padding: 15px;
    padding-bottom: 0;
    transition: height .3s;
}

.account-wrappper .account-menu .avatar {
    width: 60px;
    height: 60px;
    margin-left: 10px;
}

.account-wrappper .account-menu .avatar img {
    width: 100%;
    height: auto;
    opacity: 1;
}

.account-wrappper .account-menu .email {
    text-transform: lowercase;
    color: #333;
}

.account-wrappper .account-menu .info {
    margin-left: 20px;
}

.account-wrappper .account-menu .button {
    height: 33px;
    line-height: 33px;
    text-transform: initial;
}

.account-wrappper .account-menu .bottom {
    margin-left: -15px;
    background: #f1f1f1;
    width: 280px;
    margin-top: 10px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    color: #797979;
    border-top: 1px solid #ddd;
}

.account-wrappper .account-menu:before,
.account-wrappper .account-menu:after {
    content: '';
    position: absolute;
    top: -9px;
    right: 18px;
    width: 0px;
    height: 0px;
    z-index: 99;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #FFFFFF transparent;
}

.account-wrappper .account-menu:after {
    z-index: 98;
    border-color: transparent transparent rgb(156, 156, 156) transparent;
}

.account-wrappper .account-menu.hide {
    height: 0;
    padding: 0;
    overflow: hidden;
}